﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Runtime.Serialization;

using Unis.Framework.ORM.Attributes;
using System.ComponentModel.DataAnnotations;


namespace KingRoad.EPM.SafetyManagementEntity.Model
{
    /// <summary> 
    /// 文件生成时间 2017/2/24 19:26:39
    /// </summary> 
    [Serializable]
    [ModelMap("Scm_CostLedger", new string[] { "Cl_ID" })]
    public class ScmCostledgerInfo : BaseEntity
    {
        public ScmCostledgerInfo()
        {

        }


        private string _clId;
        /// <summary>
        /// 费用台账ID
        /// </summary>
        [ColumnMap("Cl_ID", System.Data.DbType.String)]
        public string Cl_ID
        {
            get { return _clId; }
            set
            {
                if (object.Equals(this._clId, value) != true)
                {
                    this._clId = value;
                    this.RaisePropertyChanged("Cl_ID");
                }
            }
        }


        private bool _clType;
        /// <summary>
        /// 台账类型(0=奖励台账,1=罚款台账)
        /// </summary>
        [ColumnMap("Cl_Type", System.Data.DbType.Boolean)]
        public bool Cl_Type
        {
            get { return _clType; }
            set
            {
                if (object.Equals(this._clType, value) != true)
                {
                    this._clType = value;
                    this.RaisePropertyChanged("Cl_Type");
                }
            }
        }


        private int _clOperateuserid;
        /// <summary>
        /// 操作人ID
        /// </summary>
        [ColumnMap("Cl_OperateUserID", System.Data.DbType.Int32)]
        public int Cl_OperateUserID
        {
            get { return _clOperateuserid; }
            set
            {
                if (object.Equals(this._clOperateuserid, value) != true)
                {
                    this._clOperateuserid = value;
                    this.RaisePropertyChanged("Cl_OperateUserID");
                }
            }
        }


        private string _clOperateusername;
        /// <summary>
        /// 操作人名称
        /// </summary>
        [ColumnMap("Cl_OperateUserName", System.Data.DbType.String)]
        public string Cl_OperateUserName
        {
            get { return _clOperateusername; }
            set
            {
                if (object.Equals(this._clOperateusername, value) != true)
                {
                    this._clOperateusername = value;
                    this.RaisePropertyChanged("Cl_OperateUserName");
                }
            }
        }


        private DateTime _clOperatetime;
        /// <summary>
        /// 操作时间
        /// </summary>
        [ColumnMap("Cl_OperateTime", System.Data.DbType.DateTime)]
        public DateTime Cl_OperateTime
        {
            get { return _clOperatetime; }
            set
            {
                if (object.Equals(this._clOperatetime, value) != true)
                {
                    this._clOperatetime = value;
                    this.RaisePropertyChanged("Cl_OperateTime");
                }
            }
        }


        private DateTime _clYearmonth;
        /// <summary>
        /// 年份
        /// </summary>
        [ColumnMap("Cl_YearMonth", System.Data.DbType.DateTime)]
        public DateTime Cl_YearMonth
        {
            get { return _clYearmonth; }
            set
            {
                if (object.Equals(this._clYearmonth, value) != true)
                {
                    this._clYearmonth = value;
                    this.RaisePropertyChanged("Cl_YearMonth");
                }
            }
        }


        private int _clSectionid;
        /// <summary>
        /// 标段ID
        /// </summary>
        [ColumnMap("Cl_SectionID", System.Data.DbType.Int32)]
        public int Cl_SectionID
        {
            get { return _clSectionid; }
            set
            {
                if (object.Equals(this._clSectionid, value) != true)
                {
                    this._clSectionid = value;
                    this.RaisePropertyChanged("Cl_SectionID");
                }
            }
        }


        private string _clSectionname;
        /// <summary>
        /// 标段名称
        /// </summary>
        [ColumnMap("Cl_SectionName", System.Data.DbType.String)]
        public string Cl_SectionName
        {
            get { return _clSectionname; }
            set
            {
                if (object.Equals(this._clSectionname, value) != true)
                {
                    this._clSectionname = value;
                    this.RaisePropertyChanged("Cl_SectionName");
                }
            }
        }


        private decimal _clAmount;
        /// <summary>
        /// 金额
        /// </summary>
        [Required(ErrorMessage = "*")]
       
        [ColumnMap("Cl_Amount", System.Data.DbType.Decimal)]
        public decimal Cl_Amount
        {
            get { return _clAmount; }
            set
            {
                if (object.Equals(this._clAmount, value) != true)
                {
                    this._clAmount = value;
                    this.RaisePropertyChanged("Cl_Amount");
                }
            }
        }


        private string _clConstructionname;
        /// <summary>
        /// 施工单位名称
        /// </summary>
        [Required(ErrorMessage = "*")]
        [StringLength(100, ErrorMessage = "字符长度超出范围")]
        [ColumnMap("Cl_ConstructionName", System.Data.DbType.String)]
        public string Cl_ConstructionName
        {
            get { return _clConstructionname; }
            set
            {
                if (object.Equals(this._clConstructionname, value) != true)
                {
                    this._clConstructionname = value;
                    this.RaisePropertyChanged("Cl_ConstructionName");
                }
            }
        }


        private string _clRemark;
        /// <summary>
        /// 备注
        /// </summary>
        [ColumnMap("Cl_Remark", System.Data.DbType.String)]
        public string Cl_Remark
        {
            get { return _clRemark; }
            set
            {
                if (object.Equals(this._clRemark, value) != true)
                {
                    this._clRemark = value;
                    this.RaisePropertyChanged("Cl_Remark");
                }
            }
        }


    }
}


